<?php /* Smarty version Smarty-3.1.21-dev, created on 2018-03-07 18:06:56
         compiled from "/data/wwwroot/61kq.com/uploads/app/template/member/com/resume.htm" */ ?>
<?php /*%%SmartyHeaderCode:19682116945a9fb9c064be56-58497509%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9dad002af108125a75d990da25da9c584ac1d518' => 
    array (
      0 => '/data/wwwroot/61kq.com/uploads/app/template/member/com/resume.htm',
      1 => 1517733052,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19682116945a9fb9c064be56-58497509',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'style' => 0,
    'config' => 0,
    'job_name' => 0,
    'city_name' => 0,
    'userdata' => 0,
    'v' => 0,
    'userclass_name' => 0,
    'arr_data' => 0,
    'j' => 0,
    'uptime' => 0,
    'total' => 0,
    'user' => 0,
    'time' => 0,
    'pagenav' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_5a9fb9c07cdd97_94727618',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5a9fb9c07cdd97_94727618')) {function content_5a9fb9c07cdd97_94727618($_smarty_tpl) {?><?php if (!is_callable('smarty_function_searchurl')) include '/data/wwwroot/61kq.com/uploads/app/include/libs/plugins/function.searchurl.php';
if (!is_callable('smarty_function_url')) include '/data/wwwroot/61kq.com/uploads/app/include/libs/plugins/function.url.php';
?><?php $user=array();global $db,$db_config,$config;
		if(is_array($_GET)){
			foreach($_GET as $key=>$value){
				if($value=='0'){
					unset($_GET[$key]);
				}
			}
		}
		eval('$paramer=array("limit"=>"20","minsalary"=>"\'auto.minsalary\'","maxsalary"=>"\'auto.maxsalary\'","noid"=>"1","idcard"=>"\'auto.idcard\'","edu"=>"\'auto.edu\'","order"=>"\'auto.order\'","work"=>"\'auto.work\'","exp"=>"\'auto.exp\'","sex"=>"\'auto.sex\'","keyword"=>"\'auto.keyword\'","hy"=>"\'auto.hy\'","cityin"=>"\'auto.cityin\'","adtime"=>"\'auto.adtime\'","jobids"=>"\'auto.jobids\'","pic"=>"\'auto.pic\'","typeids"=>"\'auto.typeids\'","type"=>"\'auto.type\'","job1"=>"\'auto.job1\'","job1_son"=>"\'auto.job1_son\'","job_post"=>"\'auto.job_post\'","uptime"=>"\'auto.uptime\'","post_len"=>"14","ispage"=>"1","item"=>"\'user\'","key"=>"\'key\'","name"=>"\'userlist1\'","nocache"=>"")
;');
		$ParamerArr = GetSmarty($paramer,$_GET,$_smarty_tpl);
		$paramer = $ParamerArr[arr];
		$Purl =  $ParamerArr[purl];
        global $ModuleName;
        if(!$Purl["m"]){
            $Purl["m"]=$ModuleName;
        }

	    
		$cache_array = $db->cacheget();
		$userclass_name = $cache_array["user_classname"];
		$city_name      = $cache_array["city_name"];
		$job_name		= $cache_array["job_name"];
		$job_type		= $cache_array["job_type"];
		$industry_name	= $cache_array["industry_name"];
		$where = "status='1' and `r_status`='1'  and `open`='1' and `defaults`='1'";
		
		if($config['sy_web_site']=="1"){
			if($config[province]>0 && $config[province]!=""){
				$paramer[provinceid] = $config[province];
			}
			if($config['cityid']>0 && $config['cityid']!=""){
				$paramer['cityid']=$config['cityid'];
			}
			if($config['three_cityid']>0 && $config['three_cityid']!=""){
				$paramer['three_cityid']=$config['three_cityid'];
			}
			if($config['hyclass']>0 && $config['hyclass']!=""){
				$paramer['hy']=$config['hyclass'];
			}
		}
		
		if($paramer[where_uid]){
			$where .=" AND `uid` in (".$paramer['where_uid'].")";
		}
	
		if($_COOKIE['uid']&&$_COOKIE['usertype']=="2"){
			$blacklist=$db->select_all("blacklist","`p_uid`='".$_COOKIE['uid']."'","c_uid");
			if(is_array($blacklist)&&$blacklist){
				foreach($blacklist as $v){
					$buid[]=$v['c_uid'];
				}
			$where .=" AND `uid` NOT IN (".@implode(",",$buid).")";
			}
		}
		
		if($paramer[topdate]){
			$where .=" AND `topdate`>'".time()."'";
		}
		
		
		if($paramer[idcard]){
			$where .=" AND `idcard_status`='1'";
		}
		
		if($paramer[height_status]){
			$where .=" AND height_status=".$paramer[height_status];
		}else{
			$where .=" AND height_status='0'";
		}
		
		if($paramer[rec]){
			$where .=" AND `rec`=1";
		}
	
		if($paramer[rec_resume]){
			$where .=" AND `rec_resume`=1";
		}
		
		if($paramer[work]){
			$show=$db->select_all("resume_show","1 group by eid","`eid`");
			if(is_array($show)){
				foreach($show as $v){
					$eid[]=$v['eid'];
				}
			}
			$where .=" AND id in (".@implode(",",$eid).")";
		}
		
		if($paramer[tag]){
		    $tagname=$userclass_name[$paramer[tag]];
			$tag=$db->select_all("resume","`def_job`>0 and `r_status`<>2 and `status`=1 and FIND_IN_SET('".$tagname."',`tag`)","`def_job`");
			if(is_array($tag)){
				foreach($tag as $v){
					$tagid[]=$v['def_job'];
				}
			}
			$where .=" AND id in (".@implode(",",$tagid).")";
		}
		
		if($paramer[cid]){
			$where .= " AND (cityid=$paramer[cid] or three_cityid=$paramer[cid])";
		}
		
		if($paramer[keyword]){

			$jobid = array();
			$where1[]="`name` LIKE '%$paramer[keyword]%'";
			$where1[]="`uname` LIKE '%$paramer[keyword]%'";
			foreach($job_name as $k=>$v){
				if(strpos($v,$paramer[keyword])!==false){
					$jobid[]=$k;
				}
			}
			if(!empty($jobid)){
				foreach($jobid as $value){
					$class[]="FIND_IN_SET('".$value."',job_classid)";
				}
				$where1[]=@implode(" or ",$class);
			}
			include_once  PLUS_PATH."/city.cache.php";
		    $cityid=array();
			foreach($city_name as $k=>$v){
				if(strpos($v,$paramer[keyword])!==false){
					$cityid[]=$k;
				}
			}
			if(!empty($cityid)){
				foreach($cityid as $value){
					$class[]= "(provinceid = '".$value."' or cityid = '".$value."')";
				}
				$where1[]=@implode(" or ",$class);
			}
			$where.=" AND (".@implode(" or ",$where1).")";
		}
		
		if($paramer[pic]=="0" || $paramer[pic]){
			$where .=" AND photo<>''";
			$where .=" AND phototype!=1";
		}
	
		if($paramer[name]=="0"){
			$where .=" AND uname<>''";
		}
		
		if($paramer[hy]=="0"){
			$where .=" AND hy<>''";
		}elseif($paramer[hy]!=""){
			$where .= " AND (`hy` IN (".$paramer['hy']."))";
		}
		
		$job_classid="";
		$joball=array();
		if($paramer[jobids]){
			$joball=explode(",",$paramer[jobids]);
			foreach(explode(",",$paramer[jobids]) as $v){
				if($job_type[$v]){
					$joball[]=@implode(",",$job_type[$v]);
				}
			}
			$job_classid=implode(",",$joball);
		}
		if($paramer[jobin]){
			$joball=explode(",",$paramer[jobin]);
			foreach(explode(",",$paramer[jobin]) as $v){
				if($job_type[$v]){
					$joball[]=@implode(",",$job_type[$v]);
				}
			}
			$job_classid=implode(",",$joball);
		}
		if($paramer[job1]){
			$joball=$job_type[$paramer[job1]];
			foreach($job_type[$paramer[job1]] as $v){
				$joball[]=@implode(",",$job_type[$v]);
			}
			$job_classid=@implode(",",$joball);
		}
		if($paramer[job1_son]){
			$joball=$job_type[$paramer[job1_son]];
			foreach($job_type[$paramer[job1_son]] as $v){
				$joball[]=@implode(",",$v);
			}
			$job_classid=@implode(",",$joball);
		}
		if(!empty($job_classid)){
			$classid=@explode(",",$job_classid);
		    $jobclass=array();
			foreach($classid as $value){
				$jobclass[]="FIND_IN_SET('".$value."',job_classid)";
			}
			$classid=@implode(" or ",$jobclass);
			$where .= " AND ($classid)";
		}
		if($paramer[job_post]){
			$where .=" AND FIND_IN_SET('".$paramer[job_post]."',job_classid)";
		}
		
		if($paramer[provinceid]){
			$where .= " AND provinceid = $paramer[provinceid]";
		}
		
		if($paramer[cityid]){
			$where .= " AND (`cityid` IN ($paramer[cityid]))";
		}
	
		if($paramer[three_cityid]){
			$where .= " AND (`three_cityid` IN ($paramer[three_cityid]))";
		}
		
		if($paramer[cityin]){
			$where .= " AND(provinceid IN ($paramer[cityin]) OR cityid IN ($paramer[cityin]) OR three_cityid IN ($paramer[cityin]))";
		}
	
		if($paramer[exp]){
			$where .=" AND exp=$paramer[exp]";
		}
	
		if($paramer[edu]){
			$where .=" AND edu=$paramer[edu]";
		}
		
		if($paramer[sex]){
			$where .=" AND sex=$paramer[sex]";
		}
		
		if($paramer[report]){
			$where .=" AND report=$paramer[report]";
		}
	
		if($paramer[salary]){
			$where .=" AND salary=$paramer[salary]";
		}
		if($paramer[minsalary]&&$paramer[maxsalary]){
			$where.= " AND ((`minsalary`<=".intval($paramer[minsalary])." and `maxsalary`>=".intval($paramer[minsalary]).") 
						or (`minsalary`<=".intval($paramer[maxsalary])." and `maxsalary`>=".intval($paramer[maxsalary])."))";
			
		}elseif($paramer[minsalary]&&!$paramer[maxsalary]){
			$where.= " AND ((`minsalary`<=".intval($paramer[minsalary])." and `maxsalary`>=".intval($paramer[minsalary]).") 
						or (`minsalary`>=".intval($paramer[minsalary])." and `maxsalary`>=".intval($paramer[minsalary]).")
						or (`minsalary`!=0 and  `maxsalary`=0))";
			
		}elseif(!$paramer[minsalary]&&$paramer[maxsalary]){
			$where.= " AND ((`minsalary`<=".intval($paramer[maxsalary])." and `maxsalary`>=".intval($paramer[maxsalary]).")
						or (`minsalary`<=".intval($paramer[maxsalary])." and `maxsalary`<=".intval($paramer[maxsalary]).")  
						or (`minsalary`<=".intval($paramer[maxsalary])." and maxsalary=0) 
						or (`minsalary`=0 and  `maxsalary`!=0)
						)";
			
		}
		
	
		if($paramer[type]){
			$where .= " AND type=$paramer[type]";
		}
	
		if($paramer[uptime]){
			if($paramer[uptime]==1){
				$beginToday=mktime(0,0,0,date('m'),date('d'),date('Y'));
    			$where.=" AND lastupdate>$beginToday";
    		}else{
    			$time=time();
				$uptime = $time-($paramer[uptime]*86400);
				$where.=" AND lastupdate>$uptime";
    		}
		}
	
		if($paramer[adtime]){
			$time=time();
			$adtime = $time-($paramer[adtime]*86400);
			$where.=" AND status_time>$adtime";
		}
		
     
		
		if($paramer[order] && $paramer[order]!="lastdate"){
			if($paramer[order]=='topdate'){
				$nowtime=time();
				$order = " ORDER BY if(topdate>$nowtime,topdate,lastupdate)";
			}else{
				$order = " ORDER BY `".str_replace("'","",$paramer[order])."`";
			}
		}else{
			$order = " ORDER BY lastupdate ";
		}
		
	
		$sort = $paramer[sort]?$paramer[sort]:'DESC';
		
		if($paramer[limit]){
			$limit=" LIMIT ".$paramer[limit];
		}

		
		if($paramer[where]){
			$where = $paramer[where];
		}
		if($paramer[ispage]){
			if($paramer["height_status"]){
				$limit = PageNav($paramer,$_GET,"resume_expect",$where,$Purl,"",$paramer[islt]?$paramer[islt]:"3",$_smarty_tpl);
			}else{
				
				$limit = PageNav($paramer,$_GET,"resume_expect",$where,$Purl,"",'0',$_smarty_tpl);
			}
		}
		$where.=$order.$sort;
 		$user=$db->select_all("resume_expect",$where.$limit,"*,uname as username");
        include(CONFIG_PATH."db.data.php");		
		if($user && is_array($user)){
			
			
			if($paramer['top']){
				$uids=$m_name=array();
				foreach($user as $k=>$v){
					$uids[]=$v[uid];
				}

				$member=$db->select_all($db_config[def]."member","`uid` in(".@implode(',',$uids).")","uid,username");
				foreach($member as $val){
					$m_name[$val[uid]]=$val['username'];
				}
			}
			foreach($user as $key=>$value){
				$uid[] = $value['uid'];
				$eid[] = $value['id'];
			}
			$eids = @implode(',',$eid);
			$uids = @implode(',',$uid);
            $resume=$db->select_all("resume","`uid` in(".$uids.")","uid,name,nametype,tag,sex,edu,exp,photo,phototype,birthday");
			if($paramer[topdate]){
				$noids=array();
			}	
			foreach($user as $k=>$v){
				if($paramer[topdate]){
					$noids[] = $v[id];
				}
				
				if($paramer[noid]=='1' && !empty($noids) && in_array($v['id'],$noids)){
					unset($user[$k]);
					continue;
				}
			    foreach($resume as $val){
			        if($v['uid']==$val['uid']){
			    		$user[$k]['edu_n']=$userclass_name[$val['edu']];
				        $user[$k]['exp_n']=$userclass_name[$val['exp']];
			            if($val['birthday']){
							$year = date("Y",strtotime($val['birthday']));
							$user[$k]['age'] =date("Y")-$year;
						}
						if($val['sex']==152){
							$val['sex']='1';
						}elseif ($val['sex']==153){
							$val['sex']='2';
						}
						$user[$k]['sex'] =$arr_data[sex][$val['sex']];
		                $user[$k]['phototype']=$val[phototype];
						if($config['user_pic']==1 || !$config['user_pic']){
		                if($val['photo'] && $val['phototype']!=1&&(file_exists(str_replace($config['sy_weburl'],APP_PATH,'.'.$val['photo']))||file_exists(str_replace($config['sy_weburl'],APP_PATH,$val['photo'])))){
            				$user[$k]['photo']=str_replace("./",$config['sy_weburl']."/",$val['photo']);
            			}else{
            				if($val['sex']==1||$val['sex']==152){
            					$user[$k]['photo']=$config['sy_weburl']."/".$config['sy_member_icon'];
            				}else{
            					$user[$k]['photo']=$config['sy_weburl']."/".$config['sy_member_iconv'];
            				}
            			}
						}elseif($config['user_pic']==2){
							if($val['photo']&&(file_exists(str_replace($config['sy_weburl'],APP_PATH,'.'.$val['photo']))||file_exists(str_replace($config['sy_weburl'],APP_PATH,$val['photo'])))){
								$user[$k]['photo']=str_replace("./",$config['sy_weburl']."/",$val['photo']);
							}else{
								if($val['sex']==1||$val['sex']==152){
									$user[$k]['photo']=$config['sy_weburl']."/".$config['sy_member_icon'];
								}else{
									$user[$k]['photo']=$config['sy_weburl']."/".$config['sy_member_iconv'];
								}
							}
						}elseif($config['user_pic']==3){
							if($val['sex']==1||$val['sex']==152){
								$user[$k]['photo']=$config['sy_weburl']."/".$config['sy_member_icon'];
							}else{
								$user[$k]['photo']=$config['sy_weburl']."/".$config['sy_member_iconv'];
							}
						}
						if($val['tag']){
                            $user[$k]['tag']=explode(',',$val['tag']);
	                    }
                        $user[$k]['nametype']=$val[nametype];
                       
						if($config['user_name']==1 || !$config['user_name']){
						if($val['nametype']==3){
						    if($val['sex']==1){
						        $user[$k]['username_n'] = mb_substr($val['name'],0,1,'utf-8')."先生";
						    }else{
						        $user[$k]['username_n'] = mb_substr($val['name'],0,1,'utf-8')."女士";
						    }
						}elseif($val['nametype']==2){
						    $user[$k]['username_n'] = "NO.".$v['id'];
						}else{
							$user[$k]['username_n'] = $val['name'];
						}
						}elseif($config['user_name']==3){
							if($val['sex']==1||$val['sex']==152){
								$user[$k]['username_n'] = mb_substr($val['name'],0,1,'utf-8')."先生";
							}else{
								$user[$k]['username_n'] = mb_substr($val['name'],0,1,'utf-8')."女士";
							}
						}elseif($config['user_name']==2){
							$user[$k]['username_n'] = "NO.".$v['id'];
						}elseif($config['user_name']==4){
							$user[$k]['username_n'] = $val['name'];
						}
                    }
                }
				
				
				$time=$v['lastupdate'];
				
				$beginToday=mktime(0,0,0,date('m'),date('d'),date('Y'));
				
				$beginYesterday=mktime(0,0,0,date('m'),date('d')-1,date('Y'));
			
				$week=strtotime(date("Y-m-d",strtotime("-1 week")));
				if($time>$week && $time<$beginYesterday){
					$user[$k]['time'] = "一周内";
				}elseif($time>$beginYesterday && $time<$beginToday){
					$user[$k]['time'] = "昨天";
				}elseif($time>$beginToday){
					$user[$k]['time'] = date("H:i",$v['lastupdate']);
					$user[$k]['redtime'] =1;
				}else{
					$user[$k]['time'] = date("Y-m-d",$v['lastupdate']);
				} 
				
				
				$user[$k]['user_jobstatus_n']=$userclass_name[$v['jobstatus']];
				$user[$k]['job_city_one']=$city_name[$v['provinceid']];
				$user[$k]['job_city_two']=$city_name[$v['cityid']];
				$user[$k]['job_city_three']=$city_name[$v['three_cityid']];
				if($v['minsalary']&&$v['maxsalary']){
					$user[$k]["salary_n"] = "￥".$v['minsalary']."-".$v['maxsalary'];    
                }else if($v['minsalary']){
                    $user[$k]["salary_n"] = "￥".$v['minsalary']."以上";  
                }else{
    				$user[$k]["salary_n"] = "面议";
    			}
				$user[$k]['report_n']=$userclass_name[$v['report']];
				$user[$k]['type_n']=$userclass_name[$v['type']];
				$user[$k]['lastupdate']=date("Y-m-d",$v['lastupdate']);
					
				$user[$k]['user_url']=Url("resume",array("c"=>"show","id"=>$v['id']),"1");
				$user[$k]["hy_info"]=$industry_name[$v['hy']];
				if($paramer['top']){
					$user[$k]['m_name']=$m_name[$v['uid']];
					$user[$k]['user_url']=Url("ask",array("c"=>"friend","a"=>"myquestion","uid"=>$v['uid']));
				}
				$kjob_classid=@explode(",",$v['job_classid']);
				$kjob_classid=array_unique($kjob_classid);	
				$jobname=array();
				if(is_array($kjob_classid)){
					foreach($kjob_classid as $val){
					    if($val!=''){
					        if($paramer['keyword']){
                               $jobname[]=str_replace($paramer['keyword'],"<font color=#FF6600 >".$paramer['keyword']."</font>",$job_name[$val]);
                            }else{
                               $jobname[]=$job_name[$val];
                            }
                        }
					}
				}
				$user[$k]['job_post']=@implode(",",$jobname);
				$user[$k]['expectjob']=$jobname;
				
				if($paramer['post_len']){
					$postname[$k]=@implode(",",$jobname);
					$user[$k]['job_post_n']=mb_substr($postname[$k],0,$paramer[post_len],"utf-8");
				}
			}
			foreach($user as $k=>$v){
               if($paramer['keyword']){
					$user[$k]['username_n']=str_replace($paramer['keyword'],"<font color=#FF6600 >".$paramer['keyword']."</font>",$v['username_n']);
					$user[$k]['job_post']=str_replace($paramer['keyword'],"<font color=#FF6600 >".$paramer['keyword']."</font>",$user[$k]['job_post']);
					$user[$k]['job_post_n']=str_replace($paramer['keyword'],"<font color=#FF6600 >".$paramer['keyword']."</font>",$user[$k]['job_post_n']);
					$user[$k]['job_city_one']=str_replace($paramer['keyword'],"<font color=#FF6600 >".$paramer['keyword']."</font>",$city_name[$v['provinceid']]);
					$user[$k]['job_city_two']=str_replace($paramer['keyword'],"<font color=#FF6600 >".$paramer['keyword']."</font>",$city_name[$v['cityid']]);
				}
            }
			if($paramer['keyword']!=""&&!empty($user)){
				addkeywords('5',$paramer['keyword']);
			}
		} ?>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/header.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="w1000">
	<div class="admin_mainbody"> 
		<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/left.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

		<link rel="stylesheet" href="<?php echo $_smarty_tpl->tpl_vars['style']->value;?>
/style/class.public.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type="text/css"/>
		<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/data/plus/job.cache.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type="text/javascript"><?php echo '</script'; ?>
>
		<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/data/plus/city.cache.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type="text/javascript"><?php echo '</script'; ?>
>
		<?php echo '<script'; ?>
 src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/js/class.public.js?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
" type="text/javascript"><?php echo '</script'; ?>
> 
		
		<div class=right_box>
			<div class=admincont_box>
				<div class="com_tit"> <span class="com_tit_span">搜人才</span> </div>
				<!--职位信息-->
				<div class="ps_box">   
					<form action='index.php' method="get" id="form" class="layui-form">
						<input name='c' value='resume' type='hidden'>
						<div class="ps_select fl">      
 							<div class="layui-form-item" style="margin-bottom:0px;">
								<div class="ps_select_box">
									<input type="hidden" name="job_post" id="job_post" value="<?php echo $_GET['job_post'];?>
"/>
									
									<input class="ps_class_bx " type="button"  value="<?php if ($_smarty_tpl->tpl_vars['job_name']->value[$_GET['job_post']]) {
echo $_smarty_tpl->tpl_vars['job_name']->value[$_GET['job_post']];
} else { ?>请选择职位类别<?php }?>" onclick="index_job(1,'#workadds_job','#job_post','left:100px;top:100px; position:absolute;','<?php echo $_GET['job_post'];?>
');" id="workadds_job">
								</div>
								
								<div class="ps_select_box">
									<input type="hidden" name="cityin" id="cityid" value="<?php echo $_GET['cityin'];?>
" />

									<input type="button" class="ps_class_city" value="<?php if ($_smarty_tpl->tpl_vars['city_name']->value[$_GET['cityin']]) {
echo $_smarty_tpl->tpl_vars['city_name']->value[$_GET['cityin']];
} else { ?>请选择工作地区<?php }?>"  id="city" onclick="index_city(1, '#city', '#cityid');">
								</div>

								<div class="layui-input-inline">
									<select name="exp" lay-filter="exp">
										<option value="">请选择工作年限</option>
										<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['userdata']->value['user_word']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['j']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
										<option value="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
" <?php if ($_GET['exp']==$_smarty_tpl->tpl_vars['v']->value) {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['userclass_name']->value[$_smarty_tpl->tpl_vars['v']->value];?>
</option>
										<?php } ?>
									</select>
								</div>
				

								<div class="layui-input-inline">
									<select name="edu" lay-filter="edu">
										<option value="">请选择最高学历</option>
										<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['userdata']->value['user_edu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['j']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
										<option value="<?php echo $_smarty_tpl->tpl_vars['v']->value;?>
" <?php if ($_GET['edu']==$_smarty_tpl->tpl_vars['v']->value) {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['userclass_name']->value[$_smarty_tpl->tpl_vars['v']->value];?>
</option>
										<?php } ?>
									</select>
								</div>

								<div class="layui-input-inline">
									<select name="sex" lay-filter="sex">
										<option value="">请选择性别</option>
										<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['arr_data']->value['sex']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['j']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
										<option value="<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php if ($_GET['sex']==$_smarty_tpl->tpl_vars['j']->value) {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</option>
										<?php } ?>
									</select>
								</div>
				 

								<div class="layui-input-inline">
									<select name="uptime" lay-filter="uptime">
										<option value="">请选择更新时间</option>
										<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['j'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['uptime']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['j']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
										<option value="<?php echo $_smarty_tpl->tpl_vars['j']->value;?>
" <?php if ($_GET['uptime']==$_smarty_tpl->tpl_vars['j']->value) {?> selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['v']->value;?>
</option>
										<?php } ?>
									</select>
								</div>
							</div>
             
							<div class="resume_xz fl" style="padding-top:10px;">
								<span class="fl">月薪范围：</span>
								
								<!-- 
									<a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=resume&maxsalary=2000" class="resume_xzfw">2000以下</a>
									<a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=resume&minsalary=2000&maxsalary=4000" class="resume_xzfw">2000-4000</a>
									<a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=resume&minsalary=4000&maxsalary=6000" class="resume_xzfw">4000-6000</a>
									<a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=resume&minsalary=6000&maxsalary=8000" class="resume_xzfw">6000-8000</a>
									<a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=resume&minsalary=8000&maxsalary=10000" class="resume_xzfw">8000-10000</a>
									<a href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
/member/index.php?c=resume&minsalary=10000" class="resume_xzfw">10000以上</a> 
								-->
								
								<a href="javascript:void(0)" onClick="setSalary('','2000')" class="resume_xzfw">2000以下</a>
								<a href="javascript:void(0)" onClick="setSalary('2000','4000')" class="resume_xzfw">2000-4000</a>
								<a href="javascript:void(0)" onClick="setSalary('4000','6000')" class="resume_xzfw">4000-6000</a>
								<a href="javascript:void(0)" onClick="setSalary('6000','8000')" class="resume_xzfw">6000-8000</a>
								<a href="javascript:void(0)" onClick="setSalary('8000','10000')" class="resume_xzfw">8000-10000</a>
								<a href="javascript:void(0)" onClick="setSalary('10000','')" class="resume_xzfw">10000以上</a>
								
								<input  type="text" id="min" name="minsalary" size="6" value="<?php if ($_GET['minsalary']) {
echo $_GET['minsalary'];
}?>" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="resume_xz_text"/>
								
								<span class="resume_xz_line">-</span>
								
								<input  type="text" id="max" name="maxsalary" size="6" value="<?php if ($_GET['maxsalary']) {
echo $_GET['maxsalary'];
}?>" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" class="resume_xz_text"/>
							</div>
							
							<div class="search_user_text_s fl">
								<input type="text" placeholder="输入要搜索的关键字" class="search_user_but_text fl" value="<?php echo $_GET['keyword'];?>
" name="keyword">
								<input type="submit" value="搜索" class="search_user_but_text_bth fl">  
								<a href="index.php?c=resume" class="search_user_but_text_qk fl">清空所选条件</a>
							</div>
						</div>
					</form>
				</div>
         
				<?php if ($_smarty_tpl->tpl_vars['total']->value!=0) {?> 
					<div class="ps_head fl">
						<div class="ps_head_ft fl"><div class="ps_head_cn fl"></div><span class="ps_head_cn_s fl">简历列表</span></div>
						
						<div class="ps_head_rt fr">
							<input type="checkbox" value="1" <?php if ($_GET['pic']) {?>checked<?php }?> class="search_user_cont_h1_ck" name='pic' id='pic' onclick="javascript:window.location.href='<?php if ($_GET['pic']) {
echo smarty_function_searchurl(array('m'=>'member','c'=>'resume','untype'=>'pic'),$_smarty_tpl);
} else {
echo smarty_function_searchurl(array('m'=>'member','c'=>'resume','pic'=>1),$_smarty_tpl);
}?>'">
							<label for="pic"> <span class="search_user_cont_h1_right_s">有照片</span></label>
						  
							<input type="checkbox" value="1" class="search_user_cont_h1_ck" <?php if ($_GET['idcard']) {?>checked<?php }?> name='idcard' id='idcard' onclick="javascript:window.location.href='<?php if ($_GET['idcard']) {
echo smarty_function_searchurl(array('m'=>'member','c'=>'resume','untype'=>'idcard'),$_smarty_tpl);
} else {
echo smarty_function_searchurl(array('m'=>'member','c'=>'resume','idcard'=>1),$_smarty_tpl);
}?>'"> 
							<label for="idcard"> <span class="search_user_cont_h1_right_s" >有身份验证</span></label>
						</div>
					</div>

					<div class="clear"></div>
					
					<div class="ps_ct">
						<table class="com_table">
							<tr>
								<th>姓名</th>
								<th>职位意向</th>
								<th>工作经验</th>
								<th>学历</th>
								<th >地区</th>
								<th>更新时间</th>
							</tr>

							<?php  $_smarty_tpl->tpl_vars['user'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['user']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$user = $user; if (!is_array($user) && !is_object($user)) { settype($user, 'array');}
foreach ($user as $_smarty_tpl->tpl_vars['user']->key => $_smarty_tpl->tpl_vars['user']->value) {
$_smarty_tpl->tpl_vars['user']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['user']->key;
?>
                  
								<tr>
									<td align="left">
										<a class="ps_ct_nm" href="<?php echo smarty_function_url(array('m'=>'resume','c'=>'show','id'=>$_smarty_tpl->tpl_vars['user']->value['id']),$_smarty_tpl);?>
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['user']->value['username_n'];?>
</a>
										
										<span class="sex_n">
											（ <?php echo $_smarty_tpl->tpl_vars['user']->value['sex'];?>
， <?php if ($_smarty_tpl->tpl_vars['user']->value['birthday']) {
echo $_smarty_tpl->tpl_vars['time']->value-$_smarty_tpl->tpl_vars['user']->value['birthday'];?>
岁<?php } else { ?>保密<?php }?> ）
										</span> 
										
										<?php if ($_smarty_tpl->tpl_vars['user']->value['idcard_status']=='1') {?>
											<img src="<?php echo $_smarty_tpl->tpl_vars['style']->value;?>
/images/sf.png" title="身份已认证"  class="user_rz_img png fl">
										<?php }?>
										
										<?php if ($_smarty_tpl->tpl_vars['user']->value['ispic']) {?>
											<img src="<?php echo $_smarty_tpl->tpl_vars['style']->value;?>
/images/profile.png" title="有形象照" class="user_rz_img png fl">
										<?php }?>
									</td>
									<td width="300" align="left"><span class="yxjob_name"><?php echo $_smarty_tpl->tpl_vars['user']->value['job_post_n'];?>
</span></td>
									<td><?php echo $_smarty_tpl->tpl_vars['user']->value['exp_n'];?>
</td>
									<td><?php echo $_smarty_tpl->tpl_vars['user']->value['edu_n'];?>
</td>
									<td><?php echo $_smarty_tpl->tpl_vars['user']->value['job_city_one'];?>
-<?php echo $_smarty_tpl->tpl_vars['user']->value['job_city_two'];?>
</td>
									<td>
										<?php if ($_smarty_tpl->tpl_vars['user']->value['time']=='今天'||$_smarty_tpl->tpl_vars['user']->value['time']=='昨天') {?> 
											<span style="color:red;"><?php echo $_smarty_tpl->tpl_vars['user']->value['time'];?>
</span> 
										<?php } else { ?>
											<?php echo $_smarty_tpl->tpl_vars['user']->value['time'];?>

										<?php }?> 
									</td>
								</tr> 
								
							<?php } ?>
						</table>
					</div>
				<?php }?>
         		
				<?php if ($_smarty_tpl->tpl_vars['total']->value==0) {?>
                <div class="clear"></div>
                <div class="msg_no">没有找到合适的简历。</div><?php }?>
				
				<div class="clear"></div>
				<!-- 这里放分页-->
				<?php if ($_smarty_tpl->tpl_vars['pagenav']->value) {?>
					<div class="search_pages" style="width:100%;text-align:center;"><div class="pages"><?php echo $_smarty_tpl->tpl_vars['pagenav']->value;?>
</div></div>
				<?php }?>
			</div>
		</div>
	</div>
</div>	
<?php echo '<script'; ?>
>
	$(document).ready(function(){
		$("#form").submit(function(e){
			var min = $("#min").val();
			var max = $("#max").val();
			if(min && max && parseInt(max) < parseInt(min)){
				$("#min").val(max);
				$("#max").val(min);
			}
		});
	});

	function setSalary(min,max){
		$("#min").val(min);
		$("#max").val(max);
	}
	
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript">  
  if( !('placeholder' in document.createElement('input')) ){  
   
    $('input[placeholder],textarea[placeholder]').each(function(){   
      var that = $(this),   
      text= that.attr('placeholder');   
      if(that.val()===""){   
        that.val(text).addClass('placeholder');   
      }   
      that.focus(function(){   
        if(that.val()===text){   
          that.val("").removeClass('placeholder');   
        }   
      })   
      .blur(function(){   
        if(that.val()===""){   
          that.val(text).addClass('placeholder');   
        }   
      })   
      .closest('form').submit(function(){   
        if(that.val() === text){   
          that.val('');   
        }   
      });   
    });   
  }  

	
<?php echo '</script'; ?>
> 
<?php echo '<script'; ?>
>
layui.use(['form'], function(){
    var form = layui.form
		,$ = layui.$;
   
  });

<?php echo '</script'; ?>
>
<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['tplstyle']->value)."/public_search/index_search.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/yqms.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate (((string)$_smarty_tpl->tpl_vars['comstyle']->value)."/footer.htm", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
